<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/common/WebSocket.php";
require_once '';
class UserThread extends Thread
{
    private $ip;
    private $port;
    public function __construct($ip,$port)
    {
        $this->ip=$ip;
        $this->port=$port;
    }

    public function run()
    {
      $socket=new WebSocket($this->ip,$this->port,1000);
      $socket->start();
    }
}